FROM nginx:alpine
ADD ./crt /etc/nginx/crt
COPY ./nginx.conf /etc/nginx/nginx.conf
COPY ./default.conf /etc/nginx/conf.d/default.conf
RUN ls -al  /etc/nginx/crt \
&&  echo "http://mirrors.aliyun.com/alpine/latest-stable/main/" > /etc/apk/repositories \
&& echo "http://mirrors.aliyun.com/alpine/latest-stable/community/" >> /etc/apk/repositories\ 
# 更新源、安装openssh 并修改配置文件和生成key 并且同步时间
&& apk update && apk add --no-cache curl bash ;